from random import*
from graph import*
x0=150
y0=250
line(x0-7,y0+8,x0+5,y0+8)
line(x0+5,y0+8,x0+5,y0-5)
line(x0+5,y0-5,x0-7,y0-5)
line(x0-7,y0-5,x0-7,y0+8)
penColor("red")
penSize(3)
n=int(input('n='))
if n<=0:
    print("введите число >0")
    n=int(input('n='))
c=0
for i in range(n):
    x=randint(50,250)
    y=randint(150,350)
    point(x,y)
    if 200>x>150 and 200<y<250:
        c+=1
print(c)
run()